package edu.ynu.po;
// default package

import java.util.HashSet;
import java.util.Set;


/**
 * Department entity. @author MyEclipse Persistence Tools
 */

public class Department  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private Department parent;
     private String name;
     private String abbreviation;
     private String introduction;
     private Set positions = new HashSet(0);
     private Set children = new HashSet(0);


    // Constructors

    /** default constructor */
    public Department() {
    }

    
    /** full constructor */
    public Department(Department parent, String name, String abbreviation, String introduction, Set positions, Set children) {
        this.parent = parent;
        this.name = name;
        this.abbreviation = abbreviation;
        this.introduction = introduction;
        this.positions = positions;
        this.children = children;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public Department getParent() {
        return this.parent;
    }
    
    public void setParent(Department parent) {
        this.parent = parent;
    }

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }

    public String getAbbreviation() {
        return this.abbreviation;
    }
    
    public void setAbbreviation(String abbreviation) {
        this.abbreviation = abbreviation;
    }

    public String getIntroduction() {
        return this.introduction;
    }
    
    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public Set getPositions() {
        return this.positions;
    }
    
    public void setPositions(Set positions) {
        this.positions = positions;
    }

    public Set getChildren() {
        return this.children;
    }
    
    public void setChildren(Set children) {
        this.children = children;
    }
   








}